package com.wilmer.options.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 题库题选项对象 yw_options
 * 
 * @author zl
 * @date 2024-04-16
 */
public class YwOptions extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Long optionId;
    private Long questionId;
    private String questionContent;
    @Excel(
            name = "选项描述",
            cellType = Excel.ColumnType.NUMERIC
    )
    private String content;
    @Excel(
            name = "该选项是否是正确答案填数字(1正确 2不正确)",
            width = 40.0
    )
    private String isCorrect;
    @Excel(
            name = "选项在题目中的顺序",
            width = 45.0
    )
    private Integer optionOrder;

    public String getQuestionContent() {
        return questionContent;
    }

    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }

    public void setOptionId(Long optionId)
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setIsCorrect(String isCorrect) 
    {
        this.isCorrect = isCorrect;
    }

    public String getIsCorrect() 
    {
        return isCorrect;
    }
    public void setOptionOrder(Integer optionOrder) 
    {
        this.optionOrder = optionOrder;
    }

    public Integer getOptionOrder() 
    {
        return optionOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("questionId", getQuestionId())
            .append("content", getContent())
            .append("isCorrect", getIsCorrect())
            .append("optionOrder", getOptionOrder())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
